<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/9/11
 * Time: 8:56
 */

namespace app\index\model;


class Message extends Base
{
    protected $table = 'sy_message';

    public function userId()
    {
        return $this->belongsTo('User', 'uid', 'id');
    }

    public function adminId()
    {
        return $this->belongsTo('User', 'admin_uid', 'id');
    }
}